/**
 * 功能描述:
 * 相关配置文件:
 * @author Administrator
 */
package cn.framework.service.impl;

import java.io.Serializable;
import java.util.List;

import cn.framework.dao.BaseHibernateDao;
import cn.framework.service.BaseService;

public abstract  class BaseServiceImpl implements BaseService{

	BaseHibernateDao defaultDao;
	
	public BaseServiceImpl(BaseHibernateDao defaultDao){
		this.defaultDao = defaultDao;
	}
	
	public Object save(Object domain) {
		return defaultDao.save(domain); 
	}

	public Object saveOrUpdate(Object domain) {
		return defaultDao.saveOrUpdate(domain);
	}
	
	public Object update(Object domain) {
		return 	defaultDao.update(domain);
	}

	public boolean delete(Object domain) {
		return defaultDao.delete(domain);
	}

	public boolean delete(List domainList) {
		return defaultDao.delete(domainList);
	}

	public boolean deleteByKey(Serializable id) {
		return defaultDao.deleteByKey(id);
	}

	public List findAll() {
		return defaultDao.findAll();
	}

	public List findAll(int firstResult, int size) {
		return defaultDao.findAll(firstResult, size);
	}

	public List findByExample(Object value) {
		return defaultDao.findByExample(value);
	}

	public List findByExample(Object value, int firstResult, int maxResults) {
		return defaultDao.findByExample(value, firstResult, maxResults);
	}

	public Object findById(Serializable id) {
		return defaultDao.findById(id);
	}

	public List findByProperty(String propertyName, Object value) {
		return defaultDao.findByProperty(propertyName, value);
	}

	public List findByProperty(String propertyName, Object value,
			Integer firstResult, Integer size) {
		return defaultDao.findByProperty(propertyName, value, firstResult, size);
	}

	public List findByProperty(String[] propertyNames, Object[] values) {
		return defaultDao.findByProperty(propertyNames, values);
	}

	public List findByProperty(String[] propertyNames, Object[] values,
			Integer firstResult, Integer size) {
		return defaultDao.findByProperty(propertyNames, values, firstResult, size);
	}

	public List findIn(String propertyName, Object[] value) {
		return defaultDao.findIn(propertyName, value);
	}

	public List findOrByProperty(String[] propertyNames, Object[] values,
			Integer firstResult, Integer size) {
		return defaultDao.findOrByProperty(propertyNames, values, firstResult, size);
	}

	public List fuzzyFindByProperty(String propertyName, Object value) {
		return defaultDao.fuzzyFindByProperty(propertyName, value);
	}

	public List fuzzyFindByProperty(String propertyName, Object value,
			Integer firstResult, Integer size) {
		return defaultDao.fuzzyFindByProperty(propertyName, value, firstResult, size);
	}

	public List fuzzyFindByProperty(String[] propertyNames, Object[] values) {
		return defaultDao.fuzzyFindByProperty(propertyNames, values);
	}

	public List fuzzyFindByProperty(String[] propertyNames, Object[] values,
			Integer firstResult, Integer size) {
		return defaultDao.fuzzyFindByProperty(propertyNames, values, firstResult, size);
	}
	
	public int getCount() {
		return defaultDao.getCount();
	}

	public int getCount(String propertyName, Object value) {
		return defaultDao.getCount(propertyName, value);
	}

	public int getCount(String[] propertyNames, Object[] values) {
		return defaultDao.getCount(propertyNames, values);
	}

	public List getDbCelName() {
		return defaultDao.getDbCelName();
	}

	public String getDbTableName() {
		return defaultDao.getDbTableName();
	}


	public void setDesc(boolean desc) {
		defaultDao.setDesc(desc);
	}

	
}
